package sample.sweetShops;

class Candy {
	static {
		System.out.println("loading candy");
	}
}

class Gum {
	static {
		System.out.println("loading Gum");
	}

}

class cookie {
	static {
		System.out.println("loading cookie");
	}
}

public class SweetShop {
	public static void main(String[] args) {
		System.out.println("Main");
		new Candy();

		try {
			Class.forName("sample.sweetShops.Gum");
		} catch (ClassNotFoundException e) {
			e.printStackTrace();
		}

		new cookie();
	}

}
